home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 1 Issue 2
/
PDCD-1 - Issue 02.iso
/
_utilities
/
utilities
/
001
/
whereis
/
UnixLfix
< prev
next >
Wrap
Text File
|
1993-08-25
|
860b
|
22 lines
whereis turned up a bug in UnixLib 3.6c of Hew Rogers,which
is almost sure to be found in earlier versions:
the unixlib.src.c.strstr C-Source (strstr.c) must be changed in the
following line:
while (s1 < e1) { if (!strncmp(s1,s2,l2)) return((char *)s1); s1++; }
with:
while (s1 <= e1) { if (!strncmp(s1,s2,l2)) return((char *)s1); s1++; }
explanation: without the <= , the last valid case (s1 reaches last valid
position (e1) ) is not checked.
This archive includes the complete unixlib.src.c.strstr file , to replace
the original one. You must rebuilt o.strstr in your unixlib
(compile strstr.c to an object in src.o,then set CWD to ...unixlib.src,
then 'li o.strstr', Alias$li must be set by unixlib's !boot file).
Note that bugfixes for unixlib are now held at the Stuttgart infoserver
(info2.rus.uni-stuttgart.de see /pub/systems/acorn/FILES file).